home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Changing menus loaded fr < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  967 b   |  [TEXT/ttxt]

  1. Subject:     Re: Changing menus loaded fr
  2. Sent:        6/20/96 9:19 AM
  3. Received:    6/24/96 8:25 AM
  4. From:        Mary Boetcher, mary_boetcher@quickmail.apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mail*Link® SMTP               RE>Changing menus loaded from a resource
  9.  
  10. >>I am trying to load my part's menu from a resource, but I need to add 
  11. >>additional items to an existing pull-down menu at run-time. I could do this 
  12. >>operation just fine if I built the menus programatically. Now if I load them 
  13. >>from a resource instead, I can't get the pointer to a pull-down menu. I looked >>at the menubar member functions, and it doesn't seem to provide access to the >>menus. What should I do?
  14.  
  15. You could do something like this:
  16.   FW_CMenuItem* menuItem = menuBar->GetMenuItemFromCommand(ev, commandID);
  17.   FW_CPullDownMenu* menu = menuItem->GetOwnerMenu(ev);
  18.  
  19. Mary Boetcher
  20.